<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>CSS背景及雪碧图</title>
  <style>
    .c1 {
      width:20px;
      height:20px;
      background:url(./test_bg.png) no-repeat;
      background-position: -17px -5px;
      background-size: 261px 113px;
    }
    .c2 {
      width:20px;
      height:20px;
      background:url(./test_bg.png) no-repeat;
      background-position: -169px -23px;
      background-size: 261px 113px;
    }
  </style>
</head>
<body>
  <div class="c1">
  </div>
  <div class="c2">
  </div>
</body>
</html>
